<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 5/24/21
 * Time: 9:39 PM
 */

namespace app\api\validate\product;


use LinCmsTp5\validate\BaseValidate;

class CheckProductType extends BaseValidate
{
    protected $rule = [
        'name' => 'require|max:50',
        'img_id' => 'require|isPositiveInteger',
        'store_id' => 'require|isPositiveInteger',
        'present_price' => 'require|float',
        'group_invite_cash' => 'float',
        'new_user_pay_cash' => 'float',
        'end_time' => 'require',
    ];


    protected $message = [
        'name' => '请输入名称且长度大于50',
        'img_id' => '请上传产品图片',
        'store_id' => '请选择门店',
        'present_price' => '请输入价格',
        'group_invite_cash' => '请输入团长，团员分享返现金额',
        'new_user_pay_cash' => '新顾客下单返佣金额',
        'end_time' => '请输入结束使用时间',
    ];
}